<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Logagent: plugin_t Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Logagent
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">plugin_t Struct Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="logagent-plugin_8h_source.html">logagent-plugin.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a2344de6cd9f0628e66fbbfb5d46fd344"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a2344de6cd9f0628e66fbbfb5d46fd344">json</a> [<a class="el" href="logagent-plugin_8h.html#a31c206e0aa4c218b9d0bb1eeb6fb52b0">PLUGIN_JSON_SIZE</a>]</td></tr>
<tr class="separator:a2344de6cd9f0628e66fbbfb5d46fd344"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50d39f08f9db2a2a7d07bf0c156f7be8"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a50d39f08f9db2a2a7d07bf0c156f7be8">path</a> [<a class="el" href="logagent-plugin_8h.html#a59c9b236d2de4889b16bf6ca6daf926d">PLUGIN_LIB_PATH_SIZE</a>]</td></tr>
<tr class="separator:a50d39f08f9db2a2a7d07bf0c156f7be8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae981388ef9d005eeddfa9b192e5e6ac0"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#ae981388ef9d005eeddfa9b192e5e6ac0">name</a> [<a class="el" href="logagent-plugin_8h.html#a49b112d25104a8dfcde5d443b599ba11">PLUGIN_LIB_NAME_SIZE</a>]</td></tr>
<tr class="separator:ae981388ef9d005eeddfa9b192e5e6ac0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3b00bb35a8ec1f7c00baea3092f4643b"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a3b00bb35a8ec1f7c00baea3092f4643b">config</a></td></tr>
<tr class="separator:a3b00bb35a8ec1f7c00baea3092f4643b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29c3d1dd593fd3b16816260701a8f8d0"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a29c3d1dd593fd3b16816260701a8f8d0">env_init</a> )(void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td></tr>
<tr class="separator:a29c3d1dd593fd3b16816260701a8f8d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a493c286b4a1c1f65f6dbeb8e2d3b1a95"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a493c286b4a1c1f65f6dbeb8e2d3b1a95">init</a> )(void *gconfig, void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td></tr>
<tr class="separator:a493c286b4a1c1f65f6dbeb8e2d3b1a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f1f07ba507cee308e78a95e1e93055b"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a5f1f07ba507cee308e78a95e1e93055b">work</a> )(void *gconfig, void *pconfig, struct <a class="el" href="structlist__head.html">list_head</a> *log_list)</td></tr>
<tr class="separator:a5f1f07ba507cee308e78a95e1e93055b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a412257b1bd8f06efeb48b133da5368c1"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a412257b1bd8f06efeb48b133da5368c1">exit</a> )(void *gconfig, void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td></tr>
<tr class="separator:a412257b1bd8f06efeb48b133da5368c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8164156742707d40aafdc45333aee4cc"><td class="memItemLeft" align="right" valign="top">int(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a8164156742707d40aafdc45333aee4cc">env_destroy</a> )(void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td></tr>
<tr class="separator:a8164156742707d40aafdc45333aee4cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36f7dc7ef661b2947f269b22331bad4f"><td class="memItemLeft" align="right" valign="top">void **&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a></td></tr>
<tr class="separator:a36f7dc7ef661b2947f269b22331bad4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa3286d28dbbdbc1781cdc2f67eeef553"><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#aa3286d28dbbdbc1781cdc2f67eeef553">lib_handle</a></td></tr>
<tr class="separator:aa3286d28dbbdbc1781cdc2f67eeef553"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1f00f18b91d5a820f2c43064243aa86e"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structlist__head.html">list_head</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structplugin__t.html#a1f00f18b91d5a820f2c43064243aa86e">list</a></td></tr>
<tr class="separator:a1f00f18b91d5a820f2c43064243aa86e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Field Documentation</h2>
<a id="a3b00bb35a8ec1f7c00baea3092f4643b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3b00bb35a8ec1f7c00baea3092f4643b">&#9670;&nbsp;</a></span>config</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* config</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin's global config </p>

</div>
</div>
<a id="a36f7dc7ef661b2947f269b22331bad4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a36f7dc7ef661b2947f269b22331bad4f">&#9670;&nbsp;</a></span>context</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void** context</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>context for plugins </p>

</div>
</div>
<a id="a8164156742707d40aafdc45333aee4cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8164156742707d40aafdc45333aee4cc">&#9670;&nbsp;</a></span>env_destroy</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* env_destroy) (void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a29c3d1dd593fd3b16816260701a8f8d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29c3d1dd593fd3b16816260701a8f8d0">&#9670;&nbsp;</a></span>env_init</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* env_init) (void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a412257b1bd8f06efeb48b133da5368c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a412257b1bd8f06efeb48b133da5368c1">&#9670;&nbsp;</a></span>exit</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* exit) (void *gconfig, void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a493c286b4a1c1f65f6dbeb8e2d3b1a95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a493c286b4a1c1f65f6dbeb8e2d3b1a95">&#9670;&nbsp;</a></span>init</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* init) (void *gconfig, void **<a class="el" href="structplugin__t.html#a36f7dc7ef661b2947f269b22331bad4f">context</a>)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a2344de6cd9f0628e66fbbfb5d46fd344"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2344de6cd9f0628e66fbbfb5d46fd344">&#9670;&nbsp;</a></span>json</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char json[<a class="el" href="logagent-plugin_8h.html#a31c206e0aa4c218b9d0bb1eeb6fb52b0">PLUGIN_JSON_SIZE</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin's json config </p>

</div>
</div>
<a id="aa3286d28dbbdbc1781cdc2f67eeef553"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa3286d28dbbdbc1781cdc2f67eeef553">&#9670;&nbsp;</a></span>lib_handle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* lib_handle</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin dynamic lib handle </p>

</div>
</div>
<a id="a1f00f18b91d5a820f2c43064243aa86e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1f00f18b91d5a820f2c43064243aa86e">&#9670;&nbsp;</a></span>list</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structlist__head.html">list_head</a> list</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin list header </p>

</div>
</div>
<a id="ae981388ef9d005eeddfa9b192e5e6ac0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae981388ef9d005eeddfa9b192e5e6ac0">&#9670;&nbsp;</a></span>name</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char name[<a class="el" href="logagent-plugin_8h.html#a49b112d25104a8dfcde5d443b599ba11">PLUGIN_LIB_NAME_SIZE</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin lib short name </p>

</div>
</div>
<a id="a50d39f08f9db2a2a7d07bf0c156f7be8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a50d39f08f9db2a2a7d07bf0c156f7be8">&#9670;&nbsp;</a></span>path</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char path[<a class="el" href="logagent-plugin_8h.html#a59c9b236d2de4889b16bf6ca6daf926d">PLUGIN_LIB_PATH_SIZE</a>]</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>plugin lib path </p>

</div>
</div>
<a id="a5f1f07ba507cee308e78a95e1e93055b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f1f07ba507cee308e78a95e1e93055b">&#9670;&nbsp;</a></span>work</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int(* work) (void *gconfig, void *pconfig, struct <a class="el" href="structlist__head.html">list_head</a> *log_list)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>src/<a class="el" href="logagent-plugin_8h_source.html">logagent-plugin.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
